package com.shijie.service;

import com.shijie.dto.LoginDTO;
import com.shijie.dto.RegisterDTO;
import com.shijie.dto.UserUpdateDTO;
import com.shijie.entity.User;
import org.springframework.stereotype.Service;

@Service
public interface AccountService {

    User register(RegisterDTO registerDTO);

    User login(LoginDTO loginDTO);

    boolean updateInfo(UserUpdateDTO userUpdateDTO);

    Integer checkCode(String username);

    String resetPassword(String username);
}
